package com.hopu.blb_erp.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TCargo {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String cargoNo;       //货位编号
  private String shelvesNo;     //货架编号
  private String warehouseId;  //库区编号
  private String menuId;      //仓库编号
  private String product;     //放置物品名
  private Integer productNum;     //商品数量
  //更改前端时间显示格式
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.sql.Timestamp creatTime;
  private boolean status;
  private String batch;
  @TableField(exist = false)
  private TMenu menu;
  @TableField(exist = false)
  private List<TMenu> tMenus;
  @TableField(exist = false)
  private TWarehouse warehouse;
  @TableField(exist = false)
  private TShelves shelves;
  @TableField(exist = false)
  private List<Product> tProducts;
  @TableField(exist = false)
  private List<TWarning> tWarnings;

}
